<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>客户管理</title>
    <%@ include file="/WEB-INF/views/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/system/customer.js"></script>
</head>
<body>
<%--列表--%>
<table id="customer_datagrid"></table>
<%--列表顶部工具栏--%>
<div id="customer_toolbar">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="add()">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="edit()">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="look()">查看</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="reload()">刷新</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-lock',plain:true" onclick="changeSate()">修改状态</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-man',plain:true" onclick="changeFollow()">修改跟进状态</a>
   <%-- <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-man',plain:true" onclick="">资源池</a>--%>
    <!--高级查询部分 -->

    <input class="easyui-textbox" name="keyword" type="text" id="keyword" prompt="输入/姓名/qq/录入人">

    <%--<input class="easyui-datebox" name="beginDate" >~

    <input class="easyui-datebox" name="endDate">--%> <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="query()">查询</a>
</div>
<%--保存/编辑 对话框--%>
<div id="customer_dialog">
    <form method="post" id="customer_form">
    <input type="hidden" name="id"  id="cusId">
    <table align="center" style="margin-top:15px" cellpadding="5" >
        <tr>
            <td>姓名</td>
            <td><input class="easyui-textbox" name="name"></td>
            <td>微信</td>
            <td><input class="easyui-textbox" name="wno"></td>
            <td>QQ</td>
            <td><input class="easyui-textbox" name="qno"></td>
        </tr>
        <tr>
            <td>电话</td>
            <td><input class="easyui-textbox" name="tel"></td>
            <td>邮箱</td>
            <td><input class="easyui-textbox" name="email"></td>
            <td>地址</td>
            <td><input class="easyui-textbox" name="address"></td>
        </tr>
        <%--<tr>
            <td>录入时间</td>
            <td><input class="easyui-datebox" name="inputdate"></td>
            <td>约访时间</td>
            <td><input  class = "easyui-datebox" name="visiting"></td>
            <td>跟踪时间</td>
            <td><input class="easyui-datebox" name="gzdate"></td>
        </tr>--%>
        <tr>
             <td>年龄</td>
             <td><input class="easyui-textbox" name="age"></td>
             <td>专业</td>
             <td><input class="easyui-textbox" name="profession"></td>
             <td>工作年限</td>
             <td><input class="easyui-textbox" name="gyear"></td>
         </tr>
        <tr>
              <td>意向校区</td>
              <td><input  class="easyui-combobox" name="school.id" data-options="
                                              url:'/dataDict/selsectForSchool?parentId=37',
                                              valueField: 'id',
                                              textField: 'name',
                                              panelHeight: 'auto'"
              ></td>
              <td>意向学科</td>
              <td><input class="easyui-combobox" name="discipline.id" data-options="
                                              url:'/dataDict/selsectForSchool?parentId=13',
                                              valueField: 'id',
                                              textField: 'name',
                                              panelHeight: 'auto'"
              ></td>
              <td>意向班级</td>
              <td><input class="easyui-combobox" name="grade.id" data-options="
                                              url:'/grade/selectGrade',
                                              valueField: 'id',
                                              textField: 'name',
                                              panelHeight: 'auto'"
              ></td>
          </tr>

          <tr>
              <td>意向程度</td>
              <td><input class="easyui-combobox" name="degree.id" data-options="
                                              url:'/dataDict/selsectForSchool?parentId=9',
                                              valueField: 'id',
                                              textField: 'name',
                                              panelHeight: 'auto'"
              ></td>
              <%--  分隔--%>
              <td>学历</td>
              <td><input class="easyui-combobox" name="education.id" data-options="
                                              url:'/dataDict/selsectForSchool?parentId=17',
                                              valueField: 'id',
                                              textField: 'name',
                                              panelHeight: 'auto'"
              ></td>
              <%-- 分割 --%>
              <td>客户来源</td>
              <td><input class="easyui-combobox" name="source.id" data-options="
                                              url:'/dataDict/selsectForSchool?parentId=1',
                                              valueField: 'id',
                                              textField: 'name',
                                              panelHeight: 'auto'"
              ></td>
          </tr>
          <%-- 分割--%>
          <tr>
            <%--  <td>营销人</td>
              <td><input class="easyui-combobox" name="employee.id" data-options="
                                              url:'/employee/allselect',
                                              valueField: 'id',
                                              textField: 'realName',
                                              panelHeight: 'auto'"
              ></td>--%>
              <td>录入人</td>
              <td><input class="easyui-combobox" name="employee.id" data-options="
                                              url:'/employee/allselect',
                                              valueField: 'id',
                                              textField: 'realName',
                                              panelHeight: 'auto'"
              ></td>

          </tr>
          <tr>
              <td>状态:</td>
              <td><input  class="easyui-combobox" name="statue" type="text"
                          data-options="data:[{'label': '正式员工','value':'1'},{'label': '普通学员','value': '0'}],valueField:'value', textField:'label',
                              panelHeight:'auto' ,limitToList:true,groupPosition :'sticky'"/>
              </td>
              <td>跟进状态:</td>
              <td><input  class="easyui-combobox" name="follow" type="text"
                          data-options="data:[{'label': '正在跟进','value':'1'},{'label': '无法跟进','value': '0'}],valueField:'value', textField:'label',
                              panelHeight:'auto' ,limitToList:true,groupPosition :'sticky'"/>
              </td>
          </tr>
        <tr>
            <td>备注</td>
            <td colspan="10">
                <input class="easyui-textbox" name="node"  style="width:400px;height: 80px">
            </td>
        </tr>
    </table>
    </form>
</div>

<%--保存/编辑 对话框 底部工具栏 --%>
<div id="dialog_buttons">
    <a href="#"  id="save_linkbutton" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="save()">保存</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" onclick="cancel()">关闭</a>
</div>
</body>
</html>